[HVM] qemu mouse: Adds support for USB mouse/tablet status check and
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 7 Dec 2006 11:52:26 +0000 (11:52 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 7 Dec 2006 11:52:26 +0000 (11:52 +0000)
commit0bbc8c5421bea9062a7c8db102b635d24984a612
tree306db55aa35b39665e2fd5a853016f621a2b032e
parentba855e29743e3bd431b66b3e15c4d8ec7928b48b
[HVM] qemu mouse: Adds support for USB mouse/tablet status check and
restricts Universal Host Controller interrupt generating when received
NAK in interrupt transfer.

According to usb spec, USB mouse/tablet device returns NAK to host
controller if its status does not alter in interrupt transfer.
And UHC should leave a TD active when receiving NAK and execute this
incompleted TD in a subseqent frame. UHC only generates an interrupt
on complete after the TD with ICO bit is completed.

This patch make UHC & USB mouse/tablet behave consistently with spec.

Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
tools/ioemu/hw/usb-hid.c
tools/ioemu/hw/usb-uhci.c